package com.baoyouqun.service;

import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baoyouqun.domain.CreateCmd.VipLevelCreateCmd;
import com.baoyouqun.domain.Query.VipLevelQuery;
import com.baoyouqun.domain.UpdateCmd.VipLevelUpdateCmd;
import com.baoyouqun.domain.VO.VipLevelVO;
import com.baoyouqun.entity.VipLevel;


public interface VipLevelService extends IService<VipLevel> {

    /**
     * 新增并返回实体
     */
    SingleResponse<VipLevelVO> create(VipLevelCreateCmd cmd);

    Response update(VipLevelUpdateCmd cmd);

    /**
     * 根据ID查询VO
     */
    VipLevelVO selectById(String id);

    /**
     * 分页查询VO
     */
    IPage<VipLevelVO> pageVo(VipLevelQuery query);
}